package com.canaan.business.controller.pc.home;


import com.canaan.business.domain.vo.HomePcDataVo;
import com.canaan.business.service.home.HomePcService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "PC首页接口")
@RestController
@RequestMapping("/homePc")
public class HomePcController {
    @Resource
    private HomePcService service;

    /**
     * 获取PC首页数据
     * @param storehouse
     * @return
     */
    @GetMapping("/getHomePcData")
    public HomePcDataVo getHomePcData(String storehouse) {
        return service.getHomePcData(storehouse);
    }

}
